package com.ethink.mdm.api;

import com.ethink.mdm.api.info.CompanyAndBankInfo;
import com.ethink.mdm.api.model.CompanyAndBankModel;
import com.ethink.mdm.api.response.ReceivingAccountQueryResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author default
 * @version 1.0.0
 * @ClassName AccountFacade.java
 * @Description
 * @createTime 2022年12月19日 09:30:00
 */
@FeignClient(name = "ethink-mdm-service", path = "mdm-service/facade/v1/account", contextId = "AccountFacade")
public interface AccountFacade {

    @GetMapping("/Receiving")
    @ResponseBody
    ReceivingAccountQueryResponse queryReceivingAccount();

    @GetMapping("/queryCompanyByAccount")
    @ResponseBody
    CompanyAndBankInfo queryCompanyByAccount(@RequestParam("account") String account);
}
